<?php
namespace App\Noxinfluencer\Controllers;

require_once '../../../vendor/autoload.php';

use phpspider\core\phpspider;
use phpspider\core\requests;
use phpspider\core\selector;

/* Do NOT delete this comment */
/* 不要删除这段注释 */


$url = "https://cn.noxinfluencer.com/youtube/channel/UCWGcbY5JBzcUenFwl4A1eNw";
$html = requests::get($url);


// 选择器规则
//$selector = "//div[@class='card-content']//span[@class='title']";
//$class = selector::select($html, $selector);
//print_r($class);


$selector = "//div[@class='card-content']//a[@class='underline title']";
$class = selector::select($html, $selector);
print_r($class);

/*$selector = "//div[@class='info-container']//div[@class='info-header']//div[@class='tags']//a";
$class = selector::select($html, $selector);
print_r($class);*/






